package com.hunt.model.entity;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @Author: sjs
 * @Description:
 * @Date: 2020/10/26
 * @version: 1.0
 */
public class LecturerArticle implements Serializable {

    //id
    private String id;
    //标题
    private String title;
    //内容
    private String content;
    //早评 午评 晚评
    private String contentType;
    //文章来源的讲师
    private String lecturer;
    //发布日期
    private Date releaseDate;

    public LecturerArticle(String id, String title, String contentType, String content, String lecturer, Date releaseDate) {
        this.id = id;
        this.title = title;
        this.contentType = contentType;
        this.content = content;
        this.lecturer = lecturer;
        this.releaseDate = releaseDate;
    }

    public LecturerArticle() {
    }

    public String getLecturerArticleReleaseDate() {
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String s = format.format(releaseDate);
        return s;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContentType() {
        return contentType;
    }

    public void setContentType(String contentType) {
        this.contentType = contentType;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getLecturer() {
        return lecturer;
    }

    public void setLecturer(String lecturer) {
        this.lecturer = lecturer;
    }

    public Date getReleaseDate() {
        return releaseDate;
    }

    public void setReleaseDate(Date releaseDate) {
        this.releaseDate = releaseDate;
    }

    @Override
    public String toString() {
        return "LecturerArticle{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", contentType='" + contentType + '\'' +
                ", lecturer='" + lecturer + '\'' +
                ", releaseDate=" + releaseDate +
                '}';
    }
}
